<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAboutUsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('about_us', function (Blueprint $table) {
            $table->increments('id');
            $table -> integer('user_id')        ->default(0)->comment('写作人');
            $table -> string("title")           ->nullable()->comment('标题');
            $table -> text   ('content')        ->nullable()->comment('内容');
            $table -> integer('is_show')        ->default(0)->comment('是否显示');
            $table -> integer('classify_id')    ->default(0)->comment('分类id');
            $table -> softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
